Formula of speed distance and time